package com.hongyuan.sellfitness.ui.main.beans;

import com.hongyuan.sellfitness.R;

import java.util.List;

public class CoachImgBean {

    private List<ListBean> list;

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * cp_id : 6
         * img_src : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190805/f2746f47064b850d1c6fa16a2d72db65f813ee8b_1767x2208.jpg
         * photo_category_id : 1
         * m_id : 3
         */

        private int cp_id;
        private String img_src;
        private int photo_category_id;
        private int m_id;

        //编辑状态下是否选中
        private boolean select;
        //是否在编辑状态下
        private boolean isEdite;

        public boolean isEdite() {
            return isEdite;
        }

        public void setEdite(boolean edite) {
            isEdite = edite;
        }

        public boolean isSelect() {
            return select;
        }

        public void setSelect(boolean select) {
            this.select = select;
        }

        public int getCp_id() {
            return cp_id;
        }

        public void setCp_id(int cp_id) {
            this.cp_id = cp_id;
        }

        public String getImg_src() {
            return img_src;
        }

        public void setImg_src(String img_src) {
            this.img_src = img_src;
        }

        public int getPhoto_category_id() {
            return photo_category_id;
        }

        public void setPhoto_category_id(int photo_category_id) {
            this.photo_category_id = photo_category_id;
        }

        public int getM_id() {
            return m_id;
        }

        public void setM_id(int m_id) {
            this.m_id = m_id;
        }

        /*
        * 返回选中和非选中状态的图片
        * */
        public int checkImg(){
            if(select){
                return R.mipmap.edit_status_select_mark;
            }else{
                return R.mipmap.edit_status_default_mark;
            }
        }
    }
}
